package Tests;

import system.BlogSystem;

public class UserStoryFacade9 {
	private BlogSystem system = BlogSystem.getInstance();

	public void loadData(){

	}

	public String logon(String login, String senha) throws Exception {
		return system.login(login, senha);

	}

	public String getBlogByLogin(String login, int index) throws Exception{
		return system.getBlogByLogin(login, index);
	}

	public String getPost(String blogId,int index){
		return system.getPost(blogId, index);
	}

	public void deletePost(String sessionId, String postId) throws Exception{
		system.deletePost(sessionId, postId);
	}


	public String getComment(String postId, int index)throws Exception{
		return system.getComment(postId, index);
	}


	public String getCommentText(String commentId) throws Exception{
		return system.getCommentText(commentId);
	}

	public String getCommentAuthor(String commentId) throws Exception{
		return system.getCommentAuthor(commentId);
	}

	public String getPostInformation(String postId, String atributo) throws Exception {
		return system.getInformationBlog(postId, atributo);
	}

	public void logoff(String idSession) throws Exception{
		system.logout(idSession);
	}
	public void saveData(){

	}


}
